<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>增加员工</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/css/layui.css"  media="all">
    <link rel="stylesheet" href="__PUBLIC__/css/public.css"  media="all">
    <style>
    .photo{
        position: absolute;
        width: 201px;
        height: 224px;
        top: 220px;
        right: 0;
    }
    </style>
</head>
<body>
<div class="layui-conter">
    <div class="layui-col-md12">
        <div class="navigation">
            <span>人事></span><span>增加员工</span>
        </div>
        <div class="white-conter selsectSet">
            <div class="title-blue"><b>增加员工</b></div>
            <div style="margin-top: 20px">
                <form class="layui-form" action="{:U('Personnel/AddWorkers')}" method="post">
					<input type="hidden" name="id" value="{$staff_data.id}">
                    <div class="layui-col-md6">
                        <div class="layui-col-md10" style="position: relative;">
                            <div class="layui-form-item">
                                <div class="label-div">
                                    <label class="form-label">工号</label>
                                </div>
                                <div class="layui-input-inline">
                                    <input type="text" name="name_number" value="{$staff_data.name_number}" autocomplete="off" placeholder="请输入" class="layui-input">
                                </div>
                            </div>
							<div class="layui-form-item">
								<div class="label-div">
									<label class="form-label">姓名</label>
								</div>
								<div class="layui-input-inline">
									<input type="text" name="name" autocomplete="off" value="{$staff_data.name}"  placeholder="请输入" class="layui-input">
								</div>
							</div>
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 25px">
                                    <label class="form-label">身份证号</label>
                                </div>
                                <div class="layui-input-inline">
                                    <input type="text" name="identity" autocomplete="off" value="{$staff_data.identity}"  placeholder="请输入" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item" >
                                <div class="label-div" style="padding-top: 25px">
                                    <label class="form-label">性别</label>
                                </div>
                                <div class="layui-input-inline" id="radioContent" style="width: 500px;float: left;">
                                    <input type="radio" lay-filter="select1" name="sex" value="女" title="女" <if condition="$staff_data['sex'] eq '女'">checked</if>>
                                    <input type="radio" lay-filter="select2" name="sex" value="男" title="男" <if condition="$staff_data['sex'] eq '男'">checked</if>>
                                </div>
                            </div>
                            <div class="layui-form-item" >
                                <div class="label-div" style="padding-top: 25px">
                                    <label class="form-label">是否兼职</label>
                                </div>
                                <div class="layui-input-inline" id="radioContent" style="width: 500px;float: left;">
                                    <input type="radio" lay-filter="select1" name="parttime_start" value="1" title="是" <if condition="$staff_data['parttime_start'] eq 1">checked</if>>
                                    <input type="radio" lay-filter="select2" name="parttime_start" value="0" title="否" <if condition="$staff_data['parttime_start'] eq 0">checked</if>>
                                </div>
                            </div>
                            <div class="layui-form-item" >
                                <div class="label-div" style="padding-top: 25px">
                                    <label class="form-label">是否授课</label>
                                </div>
                                <div class="layui-input-inline" id="radioContent" style="width: 500px;float: left;">
                                    <input type="radio" lay-filter="select1" name="lecture_start" value="1" title="是" <if condition="$staff_data['parttime_start'] eq 1">checked</if>>
                                    <input type="radio" lay-filter="select2" name="lecture_start" value="0" title="否" <if condition="$staff_data['parttime_start'] eq 0">checked</if>>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">所授课程</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="lecture">
                                        <foreach name="other" item="o">
										<if condition="$o['pid'] eq 14">
										<option value="{$o.id}" <if condition="$o['id'] eq $staff_data['lecture']">selected</if>>{$o.name}</option>
										</if>
										</foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="label-div"  style="padding-top: 25px">
                                    <label class="form-label">最高学历</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="education">
                                        <foreach name="other" item="o">
                                        <if condition="$o['pid'] eq 18">
                                        <option value="{$o.id}" <if condition="$staff_data['education'] eq $o['id']">selected</if>>{$o.name}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6">
						<div class="layui-form-item" style="overflow: hidden;">
							<div style="float: left;width: 40%;">
								<div class="label-div" style="padding-top: 25px;width: 100%;">
									<label class="form-label">任聘时间</label>
								</div>
								<div class="layui-input-inline" style="width: 100%;">
									<input type="text" name="ap_time" id="date1" value="{$staff_data.ap_time}" lay-verify="date" placeholder="时间选择" autocomplete="off" class="layui-input">
								</div>
							</div>
							<div style="float: right;width: 40%;">
								<div class="label-div" style="padding-top: 25px;width: 100%;">
									<label class="form-label">合同到期</label>
								</div>
								<div class="layui-input-inline" style="width: 100%;">
									<input type="text" name="contract_time" id="date2" value="{$staff_data.contract_time}" lay-verify="date" placeholder="时间选择" autocomplete="off" class="layui-input">
								</div>
							</div>
						</div>
						<div class="layui-form-item">
							<div class="label-div" style="padding-top: 25px">
								<label class="form-label">所属校区</label>
							</div>
							<div class="layui-input-inline">
								<select name="xid">
									<foreach name="other" item="o">
									<if condition="$o['pid'] eq 1">
									<option value="{$o.id}" <if condition="$staff_data['xid'] eq $o['id']">selected</if>>{$o.name}</option>
									</if>
									</foreach>
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<div class="label-div" style="padding-top: 25px">
								<label class="form-label">所属部门</label>
							</div>
							<div class="layui-input-inline">
								<select name="bm_id"> 
									<foreach name="bm_name" item="b">
									<option value="{$b.id}" <if condition="$b['id'] eq $staff_data['bm_id']">selected</if>>{$b.title}</option>
									</foreach>
								</select>
							</div>
						</div>
                        <div class="input-block layui-col-md12">
                            <div class="layui-form-item">
                                <div class="label-div">
                                    <label class="form-label">出生年月</label>
                                </div>
                                <div class="layui-input-inline">
                                    <input type="text" name="birth_time" value="{$staff_data.birth_time}" id="date3" lay-verify="date" placeholder="时间选择" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="label-div" style="padding-top: 25px">
                                <label class="form-label">手机</label>
                            </div>
                            <div class="layui-input-inline">
                                <input type="tel" name="phone" autocomplete="off" value="{$staff_data.phone}" placeholder="请输入.." class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="label-div" style="padding-top: 25px">
                                <label class="form-label">基本工资</label>
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" name="basepay" value="{$staff_data.basepay}" autocomplete="off" placeholder="请输入..." class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="label-div" style="padding-top: 25px">
                                <label class="form-label">课时费</label>
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" name="subsidy" value="{$staff_data.subsidy}" autocomplete="off" placeholder="请输入..." class="layui-input">
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-md12" style="padding-top: 25px">
                        <div class="button-block">
                            <button class="layui-btn layui-btn-xs layui-btn-normal" lay-submit="" >提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

    </div>

</div>




<script src="__PUBLIC__/js/layui.all.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            , $ = layui.jquery
            ,layedit = layui.layedit
            ,laydate = layui.laydate;
        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });
        laydate.render({
            elem: '#date2'
        });
        laydate.render({
            elem: '#date3'
        });
        form.render()

    });
</script>
</body>
</html>
